// pages/login/index.js
Page({
  data: {
    countdownVisible: false,
    time: 10,
  },
  getSMSCode() {
    this.setData({
      countdownVisible: true,
    });
  },
  onEnd() {
    this.setData({
      countdownVisible: false,
    });
  },
  onShow() {
    const pageRoutes = getCurrentPages();
    console.log("登录页面", pageRoutes);
  },
});